package com.ncloud.crm.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ncloud.crm.entity.order.Work;

/**
 * Created by shiqiang on 2017/4/11.
 */
public interface WorkService extends BaseService{
    public JSONArray getId(JSONObject json);

	public List<Map<String,Object>> getAllWorks(String workState);

	public Work getWorkInfo(Long workId);

	public void updateWork(Work work);

	public List<Work> getWorksByOrderId(long orderId);

	public List<Work> getWorksByOrderIdAndState(long orderId, char wORK_STATE_DONE);

	int updateWorkState(Work work);

	public void moveWork2His(Long orderId);

	public int deleteByOrderId(Long orderId);

	public List<Map<String, Object>> getWorksByOrder(Long orderId, String orderState);

	public Work getHisWorkInfo(Long workId);
	int updateWorkState(Long workId,char workState);

	int getNotWorkStateCount(Long orderId);
}
